const http = require('http')
const app = http.createServer()
app.on('request', (req, res) => {
    res.setHeader('Content-Type','text/html;charset=utf-8')
    res.end('hhh')
})
//中间可以添加一个参数为IP地址
app.listen('3000', () => {

})